<!--
  项目查询-项目信息卡片二
  props：
    title string 标题
    number string 项目编号
    date string 日期
    customer string 客户名称

  slots：
    number-icon 项目编号图标
    customer-icon 客户名称图标
    date-icon 开始时间图标
-->
<template>
  <div class="item-query">
    <f7-card class="item-query-card">
      <f7-card-content class="item-query-content">
        <f7-list media-list>
          <f7-list-item :title="title">
            <div slot="subtitle" class="text">
              <slot name="number-icon">
                <img src="static/img/list/icon-list-daxue.png" alt="icon-list-daxue" width="13" class="icon">
              </slot>
              <span>项目编号&nbsp;&nbsp;{{number}}</span>
            </div>
            <div slot="text" class="text">
              <slot name="customer-icon">
                <img src="static/img/list/icon-list-daxue.png" alt="icon-list-daxue" width="13" class="icon">
              </slot>
              <span>支持单位&nbsp;&nbsp;{{customer}}</span>
            </div>
            <div class="text" style="marginBottom: 0">
              <slot name="date-icon">
                <img src="static/img/list/icon-list-wenjian.png" alt="icon-list-wenjian" width="13" class="icon">
              </slot>
              <span>开始时间&nbsp;&nbsp;{{date}}</span>
            </div>
          </f7-list-item>
        </f7-list>
      </f7-card-content>
    </f7-card>
  </div>
</template>

<script>
export default {
  name: "qm-item-query2",
  props: {
    number: {
      type: String,
      default: "JG2011-11509"
    },
    title: {
      type: String,
      default: "广州大学大学城校区绿篱建设项目"
    },
    date: {
      type: String,
      default: "2021/09/30"
    },
    customer: {
      type: String,
      default: "广州大学"
    }
  }
}
</script>

<style lang="less" scoped>
.item-query {
  margin-bottom: calc(20px * var(--ratio));
  &:last-child {
    margin-bottom: 0;
  }

  .item-query-card {
    margin: 0;
    padding: calc(25px * var(--ratio)) calc(32px * var(--ratio)) calc(30px * var(--ratio));
    background: #FFFFFF;
    box-shadow: 0 calc(6px * var(--ratio)) calc(14px * var(--ratio)) 0 rgba(0, 0, 0, 0.05);
    border-radius: calc(16px * var(--ratio));

    .item-query-content {
      padding: 0;

      ::v-deep .list {
        margin: 0;
      }
      ::v-deep .item-content{
        padding: 0;

        .item-inner,.item-media {
          padding: 0;
        }

        .item-title {
          margin-bottom: calc(24px * var(--ratio));
          font-size: var(--font-size-subtitle);
          color: #242424;
          font-weight: 500;
        }
      }

      .text {
        margin-bottom: calc(20px * var(--ratio));
        font-size: var(--font-size-subcontent);
        color: #61677A;

        .icon {
          color: var(--color-brand);
        }
      }
    }
  }
}
</style>
